export default {
  tree_biz_partner: {
    _odoo_model: 'ir.ui.view',
    model: 'fp.biz.partner',
    type: 'tree',

    fields: {
      nc_state: {
        string: '状态',
        selection: [
          ['draft', '待处理'],
          ['done', '已完成']
          // ['error', '错误']
        ]
      },
      name: { string: '名称' },
      code: { string: '编码' },
      fp_partner_id: { string: '开票客户' }

      // nc_partner_ids: { string: '状态' }
    }
  },

  form_biz_partner: {
    _odoo_model: 'ir.ui.view',
    model: 'fp.biz.partner',
    type: 'form',

    fields: {
      nc_state: {
        string: '状态',
        selection: [
          ['draft', '待处理'],
          ['done', '已完成']
          // ['error', '错误']
        ]
      },
      name: { string: '名称' },
      code: { string: '编码' },
      fp_partner_id: { string: '开票客户' }
      // nc_partner_ids: { string: '导入数据' }
    }
  },

  action_biz_partner: {
    _odoo_model: 'ir.actions',
    name: '开票客户',
    type: 'ir.actions.act_window',
    res_model: 'fp.biz.partner',
    domain: [],
    context: {},
    views: {
      tree: 'tree_biz_partner',
      form: 'form_biz_partner'
    }
  }
}
